// 获取用统计列表
import axios from "../../utils/axios";

export function getList(query) {
    return axios({
        url: "/salesStatistics/getSalesStatisticsList",
        method: "get",
        params: query
    });
}
//获得详细
export function getCommodityOrderDetail(query) {
    return axios({
        url: "goldendays-order/busCommodityOrderPc/getCommodityOrderDetail",
        method: "get",
        params: query
    });
}
// 修改价格
export function updateOrder(data) {
    return axios({
        url: "/salesStatistics/updateOrder",
        method: "post",
        data: data
    });
}
//快递发货
export function getLogisticsCompany(query) {
    return axios({
        url: "goldendays-order/busCommodityOrderPc/getLogisticsCompany",
        method: "get",
        params: query
    });
}
//普通订单
export function updateOrderStatus(query) {
    return axios({
        url: "goldendays-order/busCommodityOrderPc/updateOrderStatus",
        method: "get",
        params: query
    });
}
//零售订单
export function updateOrderSaleStatus(query) {
    return axios({
        url: "goldendays-order/vipOrder/vipOrderDeliverGoods",
        method: "get",
        params: query
    });
}

//
export function getlogistics(data) {
    return axios({
        url: "goldendays-currency/currency/queryTrackMap",
        method: "post",
        data: data
    });
}
//统计头信息
export function getTotalSalesStatistics(query) {
    return axios({
        url: "/salesStatistics/getTotalSalesStatistics",
        method: "get",
        params: query
    });
}

//获得详细
export function getCommodityVipOrderDetail(query) {
    return axios({
        url: "goldendays-order/vipManageOrder/queryVipOrderDetail",
        method: "get",
        params: query
    });
}
// 获取物流详情

export function queryTrackMap(data) {
    return axios({
        url: "goldendays-currency/currency/queryTrackMap",
        method: "post",
        data: data
    });
}
